how to program hedging strategy